﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MySite.Model;
using MySite.SQLHelper;

namespace MySite.DAL
{
    public interface IDAL<T>
    {
        ReturnMessage Add(T info);
        ReturnMessage Update(T info);
        ReturnMessage Delete(string ID);
        IList<T> Query(string where);
        IList<T> Query(string where,int top);
        IList<T> Query(string where, int pageSize, int pageIndex, string orderby, ref int pageCount);
        T TakeOne(string where);
        int GetTotalCount(string where);
        ReturnMessage Exist(T info);
        void UseTable();
    }
}
